

Pod::Spec.new do |s|
    s.name             = 'OAKit'
    s.version          = '0.1.1'
    s.summary          = 'OAKit is an iOS framework.'
    s.description      = <<-DESC
    OAKit is an iOS framework, a personal lib for OutsourceAX
                       DESC
                       
    s.homepage         = 'https://gitee.com/mist/OAKit'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'ChenJie' => 'app.mist@gmail.com' }
    s.source           = { :git => 'https://gitee.com/mist/OAKit.git', :tag => s.version.to_s }
    
    s.ios.deployment_target = '9.0'
    s.source_files = 'OAKit/*.{h,m}'
    
    # /Base
    s.subspec 'Base' do |ss|
        ss.source_files = 'OAKit/Base/*.{h,m}'

        # /Base/Color
        ss.subspec 'Color' do |sss|
            sss.source_files = 'OAKit/Base/Color/*.{h,m}'
            sss.dependency 'OAKit/Base/Vendor/MetaMacros'

        end # /Base/Color end

        # /Base/Log
        ss.subspec 'Log' do |sss|
            sss.source_files = 'OAKit/Base/Log/*.{h,m}'

        end # /Base/Log end

        # /Base/Vendor
        ss.subspec 'Vendor' do |sss|

            # /Base/Vendor/MetaMacros
            sss.subspec 'MetaMacros' do |ssss|
                ssss.source_files = 'OAKit/Base/Vendor/MetaMacros/*.{h,m}'

            end # /Base/Vendor/MetaMacros end
            
        end # /Base/Vendor end

    end # /Base end

end
